package com.xwaf.platform.system.api.entity.gateway;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.xwaf.platform.common.api.entity.ELItem;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * <p>
 * <p>
 * 
 * @author 李聪 <br>
 * @email xwaf_love@yeah.net <br>
 * @since JDK 1.8<br>
 * @date 2019-6-6 10:58:03 <br>
 * @see 无<br>
 *      Copyright (c) 2019, xwaf_love@yeah.net All Rights Reserved.<br>
 */
@Data
@TableName(value = "sys_token")
public class Token extends ELItem {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "用户ID 长度(32)")
	private java.lang.String userId;

	@ApiModelProperty(value = " 设备類型 长度(500)")
	private java.lang.String deviceType;

	@ApiModelProperty(value = " 手机号 长度(20)")
	private java.lang.String mobile;

	@ApiModelProperty(value = " token 长度(500) 必填")
	private java.lang.String token;

	@ApiModelProperty(value = " 登陆IP 长度(100)")
	private java.lang.String loginIp;

	@ApiModelProperty(value = " 登陆时间")
	private java.util.Date loginTime;

	@ApiModelProperty(value = " 超时時間 ")
	private java.util.Date expireAt;

	@ApiModelProperty(value = " ")
	private java.lang.Long expiryInMilli;

	// @TableField(exist = false)
	@ApiModelProperty(value = "允许终端登录状态 1.token可用 2.token已失效 ")
	private java.lang.String status;
}
